package com.auxgroup.smarthome.enterpriseapi.responsebody.auxresult;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * Created by Toby Lai on 2017/6/13.
 */
@JsonIgnoreProperties({"error_code", "error_msg"})
public abstract  class AbstractAuxErrorResult {
    protected String error_msg;
    protected String error_code;

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public String getError_code() {
        return error_code;
    }

    public void setError_code(String error_code) {
        this.error_code = error_code;
    }

    public AbstractAuxErrorResult createErrorMsg(String error_message, String error_code){
        this.error_msg = error_message;
        this.error_code = error_code;
        return this;
    }

}
